import { Request } from './request.js';

export default {
    // 测试专用1
    geterrg(data) {
        return Request({
            url: '/logJs/Index', 
            data:data,
            method: "POST"
        })
    },
	 //注册接口
	 getregister(data) {
	     return Request({
	         url: '/api/user/register', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //登录接口
	 getLogin(data) {
	     return Request({
	         url: '/api/user/login', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //代收列表
	 getCollection(data) {
	     return Request({
	         url: '/api/collection/list', 
	         data:data,
	         method: "GET"
	     })
	 },
	 //获取收款渠道
	 getCollectionChannel(data) {
	     return Request({
	         url: '/api/collection/getBankType', 
	         data:data,
	         method: "GET"
	     })
	 },
	 //增加收款方式
	 addPaymentMethod(data) {
	     return Request({
	         url: '/api/collection/addCol', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //编辑收款方式
	 editPaymentMethod(data) {
	     return Request({
	         url: '/api/collection/editCol', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //删除收款方式
	 deletePaymentMethod(data) {
	     return Request({
	         url: '/api/collection/delCol', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //上传图片
	 uploadImg(data) {
	     return Request({
	         url: '/api/common/upload', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //收款账号列表
	 getCollectionAccountNumber(data) {
	     return Request({
	         url: '/api/collection/collist', 
	         data:data,
	         method: "GET"
	     })
	 },
	 //一键接单
	 accessOrder(data) {
	     return Request({
	         url: '/api/collection/acceptanceRrder', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //修改交易密码
	 modifyPassword(data) {
	     return Request({
	         url: '/api/user/payPassword', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //修改登录密码
	 loginPassword(data) {
	     return Request({
	         url: '/api/user/loginPassword', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //获取资金明细
	 fundDetailed(data) {
	     return Request({
	         url: '/api/user/fundingDetails', 
	         data:data,
	         method: "GET"
	     })
	 },
	 //代付列表
	 substitutePayment(data) {
	     return Request({
	         url: '/api/payment/list', 
	         data:data,
	         method: "GET"
	     })
	 },
	 //抢单
	 grabOrder(data) {
	     return Request({
	         url: '/api/payment/grab', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //确认支付订单
	 confirmedPayment(data) {
	     return Request({
	         url: '/api/payment/pay', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //确认收款
	 confirmPayment(data) {
	     return Request({
	         url: '/api/collection/issk', 
	         data:data,
	         method: "POST"
	     })
	 },
	 //下级代理列表
	 subordinateAgency(data) {
	     return Request({
	         url: '/api/agent/xjlist', 
	         data:data,
	         method: "GET"
	     })
	 },
	//下级代理列表
	divideRecord(data) {
	    return Request({
	        url: '/api/agent/rebatlist', 
	        data:data,
	        method: "GET"
	    })
	},
	//创建下级代理列表
	createAgency(data) {
	    return Request({
	        url: '/api/agent/create', 
	        data:data,
	        method: "POST"
	    })
	},
	//获取代理 返佣比例
	commissionRebateRatio(data) {
	    return Request({
	        url: '/api/agent/getInfo', 
	        data:data,
	        method: "GET"
	    })
	},
	//设置返佣比例
	setRebate(data) {
	    return Request({
	        url: '/api/agent/setRebate', 
	        data:data,
	        method: "POST"
	    })
	},
	//下级代理划转
	appropriate(data) {
	    return Request({
	        url: '/api/agent/transfer', 
	        data:data,
	        method: "POST"
	    })
	},
	//用户信息
	getUerInfo(data) {
	    return Request({
	        url: '/api/user/info', 
	        data:data,
	        method: "GET"
	    })
	},
	//系统公告
	announcementList(data) {
	    return Request({
	        url: '/api/other/bulletin', 
	        data:data,
	        method: "GET"
	    })
	},
	//系统公告详情
	announcement(data) {
	    return Request({
	        url: '/api/other/bulletinInfo', 
	        data:data,
	        method: "GET"
	    })
	},
	//转账
	transferAccounts(data) {
	    return Request({
	        url: '/api/agent/transfer', 
	        data:data,
	        method: "POST"
	    })
	},
	//获取app配置
	deploy(data) {
	    return Request({
	        url: '/api/other/appset', 
	        data:data,
	        method: "GET"
	    })
	},
    
}